package com.api.demo.dto.sync;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @description: 同步创客交付物集合DTO
 * @author: yanming
 * @createDate: 2022/10/09 09:21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "同步创客交付物集合DTO")
public class SyncDataAchievementListDTO extends SyncDataDTO {

    private static final long serialVersionUID = 5013326922695697570L;

    @ApiModelProperty(value = "任务ID", required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "上传类型,ONE , ALL")
    @NotBlank(message = "上传类型，不能为空")
    private String uploadType;

    @ApiModelProperty(value = "任务成果附件")
    @URL(message = "任务成果附件链接异常")
    private String achievementFiles;

    @ApiModelProperty(value = "工作成果说明")
    private String achievementDesc;

    @ApiModelProperty(value = "提交工作成果日期")
    private String achievementDate;

    @ApiModelProperty(value = "创建时间")
    private String createDate;

    @ApiModelProperty(value = "创客交付物")
    private List<SyncDataAchievementDTO> syncAchievementDTOList;
}